package util;

import java.util.List;
import java.util.Set;

public class TraverseUtils {
	public  static void println(String tag, Object object) {
		LogUtils.println(tag, object.toString());
	}
	
	public  static void println(String tag, char[] obj) {
		for (char object : obj) {
			LogUtils.println(tag, Character.valueOf(object));
		}
	}
	
	public  static void println(String tag, String[] obj) {
		for (String object : obj) {
			LogUtils.println(tag, object.toString());
		}
	}
	
	public  static void println(String tag, int[] obj) {
		for (int object : obj) {
			LogUtils.println(tag, object);
		}
	}
	
	public  static void println(int[] obj) {
		for (int object : obj) {
			LogUtils.print(object);
		}
	}
	
	public  static void println(int[] obj, int endIndex) {
		for (int i = 0; i < endIndex; i ++) {
			LogUtils.print(obj[i]);
		}
	}
	
	public  static void println(String tag, int[][] arr) {
		LogUtils.println(tag);
		for (int[] row : arr) {
			for (int object : row) {
				LogUtils.print(object);
			}
			LogUtils.br();
		}
	}
	
	public  static <E> void println(List<List<E>> objs) { 
    	for (List<E> list : objs) {
    		for (E e : list) {
    			LogUtils.print(e);
    		}
    		LogUtils.br();
    	}
	}
	
	public  static <E> void printlnOfList(List<E> rs) { 
		for (E e : rs) {
			LogUtils.print(e);
		}
		LogUtils.br();
	}

	public  static <E> void println4Set(Set<E> rs) { 
		for (E e : rs) {
			LogUtils.print(e);
		}
		LogUtils.br();
	}

	
	/*
	 * 
	 */
	public static void printTwoDimensionalArray(String tag, Object[][] arrays) {
		LogUtils.print(tag);
		for (Object[] array : arrays) {
			for (Object object : array) {
				LogUtils.print(object);
			}
			LogUtils.br();
		}
	}
	
}
